package com.icloud.auth.api.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * Oauth2获取Token返回信息封装
 * Created by im on 2020/7/17.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Oauth2TokenVo {

    @ApiModelProperty("访问令牌")
    private String token;

    @ApiModelProperty("刷令牌")
    private String refreshToken;

    @ApiModelProperty("访问令牌头前缀")
    private String tokenHead;

    @ApiModelProperty("有效时间（秒）")
    private int expiresIn;

    @ApiModelProperty("账号权限信息")
    private List<String> permissionTags;

    @ApiModelProperty("客户Id")
    private Long customerId;
}
